<!-- 左侧组件 -->
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../common/taglib.jsp"%>
<!--sidebar-menu-->
<div id="sidebar" >
	<a href="#" class="visible-phone">
		<i class="icon icon-home"></i> Dashboard
	</a>

  <ul>
  <c:forEach items="${leftMenuList}" var="menuParent" varStatus="status">
  	<c:choose>
		<c:when test="${fn:length(menuParent.childMenu) > 0}">
			<li class="submenu">
		      <a href="#">
		    	<i class="icon ${menuParent.icon }"></i> 
		   		<span>${menuParent.name}</span> 
		   		<span class="label label-important">${fn:length(menuParent.childMenu)}</span>
		   	  </a>
		      <ul>
		      	<c:forEach items="${menuParent.childMenu}" var="childMenu" varStatus="status">
		        <li>
		        	<a  href="${base}${childMenu.link}">
		        	<i class="icon ${childMenu.icon}"></i> 
		        	<span>${childMenu.name}</span>
		        	</a>
		        </li>
		        </c:forEach>
		      </ul>
		    </li>
		</c:when>
		<c:otherwise>
			<li class="active">
		    	<a href="${base}${childMenu.link}">
		    		<i class="icon icon-home"></i> 
		    		<span>${menuParent.name}</span>
		    	</a> 
		    </li>
		</c:otherwise>
    </c:choose>
	</c:forEach>
    
    <!-- <li class="submenu"> <a href="#"><i class="icon icon-info-sign"></i> <span>Error</span> <span class="label label-important">4</span></a>
      <ul>
        <li><a href="error403.html">Error 403</a></li>
        <li><a href="error404.html">Error 404</a></li>
        <li><a href="error405.html">Error 405</a></li>
        <li><a href="error500.html">Error 500</a></li>
      </ul>
    </li> -->
    <li class="content"> <span>Monthly Bandwidth Transfer</span>
      <div class="progress progress-mini progress-danger active progress-striped">
        <div style="width: 77%;" class="bar"></div>
      </div>
      <span class="percent">77%</span>
      <div class="stat">21419.94 / 14000 MB</div>
    </li>
    <li class="content"> <span>Disk Space Usage</span>
      <div class="progress progress-mini active progress-striped">
        <div style="width: 87%;" class="bar"></div>
      </div>
      <span class="percent">87%</span>
      <div class="stat">604.44 / 4000 MB</div>
    </li>
  </ul>
</div>
<!--sidebar-menu-->
